<?php

namespace model\all;
class Relation extends \model\Relation{

    protected function getConfig(){
        return $conf = [
            'detail' => [
                'type' => \dk\core\Jrelations::HAS_ONE,
                'table' => 'alldoc_detail',
                'forkey'  => 'doc_id',
                'pk'  => 'id',
            ]
        ];
    }

}